<script type="text/javascript" src="/My97DatePicker/WdatePicker.js"></script>

<div class="span10" id="datacontent">
    <ul class="breadcrumb">
        <li><a href="/user/index/index">剑雅模块</a> <span class="divider">/</span></li>
        <li class="active">模考记录</li>
    </ul>
    <ul class="nav nav-tabs">
        <li class="active">
            <a href="javascript:;" onclick="javascript:openall();">模考记录</a>
        </li>
    </ul>

    <form action="" id="checkPush" method="post">
        <table class="table table-hover">
            <thead>
            <tr>
                <th width="80">模考编号</th>
                <th width="80">用户ID</th>
                <th>电话</th>
                <th>类别</th>
                <th>模考名称</th>
                <th>模考状态</th>
                <th>得分</th>
                <th>模考时间</th>

            </tr>
            </thead>
            <tbody>
            <?php
            foreach($data as $v) {
                ?>
                <tr>
                    <td><?php echo $v['id']?></td>
                    <td><?php echo $v['userName']?></td>
                    <td><?php echo $v['phone']?></td>
                    <td><?php echo $mockName=$v['type']==1?'听力':($v['type']==2?'阅读':'全套')?></td>
                    <td><?php echo $mockName.'模考卷'.Yii::$app->params['noToStr'][$v['mockcate_id']]?></td>
                    <td><?php echo $v['status']==1?'完成':'未完成';?></td>
                    <td><?php echo $v['score']?></td>
                    <td><?php echo date("Y-m-d H:i:s",$v['createTime'])?></td>
                </tr>
                <?php
            }
            ?>
            </tbody>
        </table>
    </form>
    <div class="pagination pagination-right">
        <?php use yii\widgets\LinkPager;?>
        <?php echo LinkPager::widget([
            'pagination' => $page,
        ])?>
    </div>
</div>

